//显示图书类
package opeartion;

import book.Book;
import book.BookList;

public class DisplayOperation implements IOperation{//链接接口
    //重写word方法
    @Override
    public void work(BookList bookList) {
        int size=bookList.getBookSize();//获取书籍数量
        for(int i=0;i<size;i++){//遍历顺序表
            Book book=bookList.getBooks(i);//获取顺序表i下标书籍
            System.out.println(book);//打印获取的书籍
        }
    }
}
